<template>
  <div class="app-container">
    <div class="change">
      <p>
        <span>维修编号</span>
        <el-input v-model="tempData.serviceNumber" :disabled="islook" type="text" class="userselect" placeholder="维修编号" />
      </p>
      <p>
        <span>业务日期</span>
        <el-date-picker v-model="tempData.serviceDate" :disabled="islook" type="date" value-format="yyyy-MM-dd" class="userselect" placeholder="业务日期"></el-date-picker>
      </p>
      <!-- <p>
        <span>处理人</span>
        <el-input placeholder="处理人" disabled v-model="tempData.servicePerson" class="userselect"></el-input>
      </p> -->
      <p>
        <span>维修花费</span>
        <el-input v-model="tempData.serviceJine" :disabled="islook" type="text" class="userselect" placeholder="请输入维修花费" />
      </p>
      <p>
        <span>状态</span>
        <el-select v-model="tempData.wxstatus" :disabled="islook" placeholder="请选择状态" class="userselect">
          <el-option
            v-for="item in statuslist"
            :key="item.value"
            :label="item.label"
            :value="item.label"
          ></el-option>
        </el-select>
      </p>
      <p>
        <span>报修人</span>
        <el-input placeholder="报修人" disabled v-model="tempData.warrantyPerson" class="userselect"></el-input>
        <!-- <el-input placeholder="请输入报修人" :disabled="islook" v-model="tempData.warrantyPerson" class="userselect">
          <el-button :disabled="islook" slot="append" icon="el-icon-s-custom" @click="checkBuyer2"></el-button>
        </el-input> -->
      </p>
      <p>
        <span>图片</span>
        <el-upload
          class="avatar-uploader"
          action
          :http-request="designUpAvatar"
          :show-file-list="false"
          :disabled="islook"
        >
          <img v-if="tempData.imgurl" :src="tempData.imgurl" class="avatar1" />
          <i v-else class="el-icon-plus avatar-uploader-icon"></i>
        </el-upload>
      </p>
      <p class="beizhu">
        <span>维修内容</span>
        <el-input v-model="tempData.serviceContent" :disabled="islook" type="textarea" class="userselect" placeholder="请输入维修内容" />
      </p>
      <p class="beizhu">
        <span>备注</span>
        <el-input v-model="tempData.remarks" :disabled="islook" type="textarea" class="userselect" placeholder="请输入备注" />
      </p>
    </div>
    <div class="change" style="margin-top:10px">
      <p class="beizhu" v-if="tempData.evaluateWeixiu!=null">
        <span>维修设备评价</span>
        <el-input v-model="tempData.evaluateWeixiu" :disabled="islook" type="textarea" class="userselect" placeholder="请输入维修内容" />
      </p>
      <p class="beizhu" v-if="tempData.evaluateWeixiuRemarks!=null">
        <span>备注</span>
        <el-input v-model="tempData.evaluateWeixiuRemarks" :disabled="islook" type="textarea" class="userselect" placeholder="请输入备注" />
      </p>
      <p class="beizhu" v-if="tempData.evaluateBaoxiu!=null">
        <span>对维修人的评价</span>
        <el-input v-model="tempData.evaluateBaoxiu" :disabled="islook" type="textarea" class="userselect" placeholder="请输入维修内容" />
      </p>
      <p class="beizhu" v-if="tempData.evaluateBaoxiuRemarks!=null">
        <span>备注</span>
        <el-input v-model="tempData.evaluateBaoxiuRemarks" :disabled="islook" type="textarea" class="userselect" placeholder="请输入备注" />
      </p>
    </div>
    <!-- 产品数据 -->
    <div class="zd3-btm">
      <div class="addDate" @click="addPeople" v-show="!islook">+ 选择资产</div>
      <el-table :data="proData" :show-header="true" style="width: 100%;border-radius: 8px;">
        <el-table-column type="index" label="序号" align="center" width="80" />
        <el-table-column align="center" label="照片" width="50">
				  <template slot-scope="scope">
				    <img :src="scope.row.imgurl" alt="" class="avatar">
				  </template>
				</el-table-column>
				<el-table-column align="center" prop="commodityName" label="资产编码" width="150"></el-table-column>
        <el-table-column align="center" prop="propertyName" label="资产名称" width="150"></el-table-column>
        <el-table-column align="center" prop="belongCompany" label="所属公司" width="150"></el-table-column>
        <el-table-column align="center" prop="companys" label="当前所在公司" width="150"></el-table-column>
        <el-table-column align="center" prop="departments" label="当前所在部门" width="150"></el-table-column>
        <el-table-column align="center" prop="usePerson" label="当前使用人" width="150"></el-table-column>
				<el-table-column align="center" prop="storeAreas" label="存放地点" width="150"></el-table-column>
        <el-table-column align="center" width="80" label="操作" fixed="right" v-if="!islook">
          <template slot-scope="scope">
            <el-popconfirm
              placement="top"
              hideIcon
              title="是否要删除此行？"
              @onConfirm="deleteRow(scope.row,scope.$index)"
            >
              <el-button type="text" size="small" slot="reference">删除</el-button>
            </el-popconfirm>
          </template>
        </el-table-column>
      </el-table>
			<div class="submits">
        <el-button type="primary" v-if="islook" size="small" @click="nosaveOrder">返回</el-button>
        <el-button type="primary" v-else size="small" :loading="isClick" @click="saveOrder">保存</el-button>
        <el-button type="info" size="small" @click="nosaveOrder">取消</el-button>
			</div>
    </div>
    <!-- 处理人弹窗 -->
    <el-dialog title="选择处理人" :visible.sync="buyerShow1" width="80%" top="20px">
      <div class="files">
				<div class="files-left">
					<el-menu class="el-menu-vertical-demo" @select="handleSelece" default-active="0">
						<el-menu-item :index='index' v-for="(item,index) in ifydata" :key="index">
							<span slot="title">{{item.departments}}</span>
						</el-menu-item>
					</el-menu>
				</div>
				<div class="files-right">
					<div class="files-btm">
						<el-table 
              :data="peopleData" 
              height="400" 
              highlight-current-row
              @current-change="handlePeople1"
              style="margin-bottom: 20px;" 
              :show-header="true" >
							<el-table-column align="center" prop="username" label="姓名"></el-table-column>
							<el-table-column align="center" prop="departments" label="所属部门"></el-table-column>
							<el-table-column align="center" prop="sex" label="性别"></el-table-column>
							<el-table-column align="center" prop="power" label="职务"></el-table-column>
						</el-table>
						<el-pagination background hide-on-single-page :page-size="50" layout="prev, pager, next" :total="total" @prev-click="goPrev" @current-change='goPage' @next-click="goNext" />
					</div>
				</div>
			</div>
      <span slot="footer" class="dialog-footer">
        <el-button size="small" @click="buyerShow = false">取 消</el-button>
        <el-button size="small" type="primary" @click="buyerShow = false">确 定</el-button>
      </span>
    </el-dialog>
     <!-- 报修人弹窗 -->
    <el-dialog title="选择报修人" :visible.sync="buyerShow2" width="80%" top="20px">
      <div class="files">
				<div class="files-left">
					<el-menu class="el-menu-vertical-demo" @select="handleSelece" default-active="0">
						<el-menu-item :index='index' v-for="(item,index) in ifydata" :key="index">
							<span slot="title">{{item.departments}}</span>
						</el-menu-item>
					</el-menu>
				</div>
				<div class="files-right">
					<div class="files-btm">
						<el-table 
              :data="peopleData" 
              height="400" 
              highlight-current-row
              @current-change="handlePeople2"
              style="margin-bottom: 20px;" 
              :show-header="true" >
							<el-table-column align="center" prop="username" label="姓名"></el-table-column>
							<el-table-column align="center" prop="departments" label="所属部门"></el-table-column>
							<el-table-column align="center" prop="sex" label="性别"></el-table-column>
							<el-table-column align="center" prop="power" label="职务"></el-table-column>
						</el-table>
						<el-pagination background hide-on-single-page :page-size="50" layout="prev, pager, next" :total="total" @prev-click="goPrev" @current-change='goPage' @next-click="goNext" />
					</div>
				</div>
			</div>
      <span slot="footer" class="dialog-footer">
        <el-button size="small" @click="buyerShow = false">取 消</el-button>
        <el-button size="small" type="primary" @click="buyerShow = false">确 定</el-button>
      </span>
    </el-dialog>
		<!-- 新增信息 -->
		<el-dialog title="选择资产" :visible.sync="addProShow" width="85%" top="20px" :close-on-click-modal="false">
		  <div class="files">
				<div class="files-left">
					<el-menu class="el-menu-vertical-demo" @select="handleSeleceAssets" :default-active="activeIndex">
						<el-menu-item v-for="(item,index) in ifydata" :index="index" :key="'id'+index">
							<span slot="title">{{item.departments}}</span>
						</el-menu-item>
					</el-menu>
				</div>
				<div class="files-right">
					<div class="files-btm">
						<el-table 
              :data="proDeail" 
              style="width: 100%;border-radius: 8px;"
              height="480"
              highlight-current-row
              @current-change="handleAdd"
              border 
              v-loading="loading">
              <el-table-column type="index" align="center" width="50" label="序号" />
              <el-table-column align="center" prop="status" width="70" label="状态">
                <template slot-scope="scope">
                  <div
                    class="status"
                    :class="scope.row.status == '使用中' ? 'green' : scope.row.status == '闲置' ? 'yellow' : scope.row.status == '已清理' ? 'red' : scope.row.status == '借用' ? 'blue' : scope.row.status == '维修中' ? 'blue' : 'green'"
                  >{{scope.row.status}}</div>
                </template>
              </el-table-column>
              <el-table-column align="center" label="照片">
                <template slot-scope="scope">
                  <img :src="scope.row.imgurl" alt="" class="avatar">
                </template>
              </el-table-column>
              <el-table-column align="center" label="二维码">
                <template slot-scope="scope">
                  <img :src="scope.row.erweima" alt="" class="avatar">
                </template>
              </el-table-column>
              <el-table-column align="left" prop="propertySn" width="150" label="资产SN编码" />
              <el-table-column align="left" prop="propertyName" width="150" label="资产名称" />
              <el-table-column align="left" prop="propertyType" width="150" label="资产类别" />
              <el-table-column align="left" prop="propertyGuige" width="150" label="资产规格" />
              <el-table-column align="left" prop="weihao" width="150" label="位号" />
              <el-table-column align="left" prop="xuhao" width="150" label="设备序列号" />
              <el-table-column align="left" prop="bianma" width="150" label="设备生产编码" />
              <!-- <el-table-column align="left" prop="canshu" width="150" label="设备参数" /> -->
							<el-table-column align="center" width="200" label="设备参数" >
								<template slot-scope="scope">
									<div class="ellisp">{{scope.row.canshu}}</div>
								</template>
							</el-table-column>
              <el-table-column align="left" prop="runhua" width="150" label="润滑方式" />
              <el-table-column align="left" prop="baoyang" width="150" label="保养类型" />
              <el-table-column align="left" prop="propertyJine" width="100" label="金额" />
              <el-table-column align="left" prop="propertyNums" width="80" label="数量" />
              <el-table-column align="left" prop="purchaseTime" width="100" label="购买时间" />
              <el-table-column align="left" prop="companys" width="100" label="使用公司" />
              <el-table-column align="left" prop="departments" width="100" label="使用部门" />
              <el-table-column align="left" prop="usePerson" width="100" label="使用人" />
              <el-table-column align="left" prop="jianxiuren" width="100" label="检修人" />
              <!-- <el-table-column align="left" prop="jixiugong" width="100" label="机修工" /> -->
              <el-table-column align="left" prop="weixiuren" width="100" label="维修人" />
              <el-table-column align="left" prop="areas" width="150" label="区域名称" />
              <el-table-column align="left" prop="storeAreas" width="150" label="存放地址" />
              <el-table-column align="left" prop="belongCompany" width="150" label="所属公司" />
              <el-table-column align="left" prop="suppliers" width="150" label="供应商" />
              <el-table-column align="left" prop="serviceLife" width="100" label="使用期限" />
              <el-table-column align="left" prop="sourceOf" width="100" label="来源" />
            </el-table>
            <el-pagination
              background
              align="right"
              layout="prev, pager, next"
              :page-count="totalAssets"
              @current-change="goBumenPage"
              @prev-click="goBumenPrev"
              @next-click="goBumenNext"
            />
					</div>
				</div>
			</div>
		</el-dialog>
  </div>
</template>
<script>
import { getUser,getBumenNew } from '@/api/people'
import { getGongying,rukuList,addWeixiu,updateWeixiu,getFenlei,uploadFile,selectWeishiyong } from '@/api/caigou'
import { getCangku,productOneClass,withIdGetPro,outStock } from '@/api/cangku'
let selectid = null,navindex = null,navindexAssets = null;
export default {
  data() {
    return {
      radio: "1",
      total: 1,
      page: 1,
      totalAssets: 1,
      pageAssets: 1,
      value: '',
      tableData: [],
      oneClassify: [],   //一级分类
      loading: true,
      twoClassify: [{
        name:'一级分类',
        children: [{
          name: '二级分类'
        }]
      }],   //商品分类
      tempData: {
        status: '1'
      },
			statuslist: [{
				label: '报修',
				value: 0
			},{
				label: '维修中',
				value: 1
			},
			{
				label: '已完成',
				value: 2
      }],
      ifydata: [{
        id: 0,
        departments: '全部',
        value: ''
			}],   //部门列表
      bumen: '',     //部门值
      buyerList: {},
			proDeail: [],  //商品列表
      peopleData: [],  //人员列表
      currentRow: null,
      buyerShow1: false, //处理人弹窗状态
      buyerShow2: false, //保修人弹窗状态
			addProShow: false, //商品信息弹窗
      proData: [],
      propertyName: '',
      isClick: false,  //是否点击操作
			islook: false,   //是否是查看操作
      writOradd: 0 //0新增，1编辑
    };
  },
  mounted(){
    if(this.$route.params.look){
			this.islook = true
			console.log(this.islook)
		}else{
      const userinfo = this.$store.state.user.userInfo[0]
      this.getpeople(userinfo.departments)
      this.getAsset()
      this.getClassify()
      this.bumenList()
      this.gongyingList()
    }
    this.tempData.warrantyPerson = this.$store.state.user.userInfo[0].username
    console.log(this.$route.params)
    if(this.$route.params.options){
      this.tempData = JSON.parse(this.$route.params.options)
      console.trace('tempData:',this.tempData)
      this.proData = this.tempData.putList
      this.writOradd = 1
    }else{
      this.writOradd = 0
    }
		
  },
  methods: {
    // 人员列表
    getpeople(id){
      console.log('id:',id)
      getUser({departments: id,currentPage:this.page}).then(res => {
        console.log(res)
        this.peopleData = res.data.list
        this.total = res.data.total
      })
    },
    /**
     * 根据资产名搜索
     */
    searchList(){
      this.loading = true
      this.getAsset()
    },
    /**
     * 重置名称搜索
     */
    resetList(){
      this.propertyName = null
    },
    /**
     * 获取资产列表
     */
    getAsset() {
      this.loading = true
      rukuList({
        currentPage:this.pageAssets,
        departments: navindexAssets ? navindexAssets : null,
        propertyName: this.propertyName ? this.propertyName : null
      }).then((res) => {
        console.log(res);
        let temparr = res.data.list.filter(item => item.status === '闲置' || item.status === '使用中')
        this.proDeail = temparr
        this.totalAssets = res.data.pages
        this.loading = false
      });
    },
    // 部门列表
    bumenList() {
      getBumenNew({}).then((res) => {
        console.log("----------------");
        console.log(res);
        let temp = res.data.filter(item => item.ids === '456')[0].departmentsList
        console.log(temp)
        temp.map((item) => {
          item.value = item.departments;
          return item;
        });
        this.ifydata = temp;
      });
    },
    designUpAvatar(item) {
      console.log(this.fileNum);
      var formData = new FormData();
      const loading = this.$loading({
        lock: true,
        text: "上传中请稍等...",
        spinner: "el-icon-loading",
        background: "rgba(255, 255, 255, 0.8)",
      });
      formData.append("file", item.file);
      uploadFile(formData).then((res) => {
        console.log(res);
        this.$message({
          showClose: true,
          message: "添加成功",
          type: "success",
        });
        loading.close();
        this.imageUrl = res;
        this.tempData.imgurl = res;
        console.log(this.tempData.imgurl);
      });
    },
    // 供应商列表
    gongyingList(){
      getGongying({}).then(res => {
        console.log(res)
        this.gongying = res.data
      })
    },
    // 获取商品分类--仓库列表
    // cangkuList(){
    //   getCangku({}).then(res => {
    //     console.log(res)
    //     this.twoClassify = res.data
    //   })
    // },
    /**
     * 获取资产分类
     */
    getClassify(){
      getFenlei({}).then(res => {
        console.log('资产分类',res)
        this.twoClassify = res.data
      })
    },
    // 切换导航
		handleSeleceAssets(index){
			this.loading = true
			console.log(index)
			console.log(this.ifydata[index])
			navindexAssets = this.ifydata[index].value
			this.pageAssets = 1
			this.getAsset()
		},
    // 选择人员分类
    handleSelece(index){
			console.log(index)
			console.log('ifydata:',this.ifydata[index])
			navindex = this.ifydata[index].value ? this.ifydata[index].value : null
			this.getpeople(navindex)
    },
    // 点击分类菜单获取对应商品
    handleNodeClick(data, checked, node) {
      console.log(data)
      selectid = data.id
      this.getAsset(data.id)
    },
		// 增加商品
    addPeople() {
      this.addProShow = true
		},
    // 资产分页
    goBumenPage(page) {
      this.pageAssets = page;
      this.getAsset();
    },
    goBumenPrev(page) {
      console.log(page);
      this.pageAssets--;
      this.getAsset();
    },
    goBumenNext(page) {
      this.pageAssets++;
      this.getAsset();
      console.log(page);
    },
    // goPrevAssets(page) {
    //   console.log(page)
    //   this.pageAssets--
    //   this.getAsset(selectid)
    // },
    // goNextAssets(page) {
    //   console.log(page)
    //   this.pageAssets++
    //   this.getAsset(selectid)
    // },
    // goPageAssets(page){
    //   console.log(page)
    //   this.pageAssets = page
    //   this.getAsset(selectid)
    // },
    // 分页
    goPrev(page) {
      console.log(page)
      this.page--
      this.getpeople(navindex)
    },
    goNext(page) {
      console.log(page)
      this.page++
      this.getpeople(navindex)
    },
    goPage(page){
      console.log(page)
      this.page = page
      this.getpeople(navindex)
    },
		// 确认选择供应商
    handleGongying(val) {
      console.log(val);
      this.currentRow = val.name;
    },
		// 选择供应商
    checkGy() {
      this.gyShow = true;
    },
		// 选择处理人
    checkBuyer1() {
      this.buyerShow1 = true;
    },
		// 选择报修人
    checkBuyer2() {
      this.buyerShow2 = true;
    },
		// 选择商品列表增加商品
		handleAdd(row){
			console.log(row)
			row.ischeck = false
      row.num = 1
      let index = this.proData.findIndex(item => item.oid === row.oid)
      if(index == -1){
        this.proData.push({...row})
        console.log(this.proData)
        this.addProShow = false
      }else{
        this.$message({
          message: '该资产已选择！',
          type: 'warning'
        })
      }
    },
    // 选择处理人员
    handlePeople1(row){
      console.log(row)
      this.tempData.servicePerson = row.username
			this.buyerShow1 = false
    },
    // 选择保修人员
    handlePeople2(row){
      console.log(row)
      this.tempData.warrantyPerson = row.username
			this.buyerShow2 = false
		},
		// 删除对应商品数据
		deleteRow(value,index){
			console.log(index)
			this.proData.splice(index,1)
		},
		// 保存新增入库单
		saveOrder(){
      this.isClick = true
      console.log('保存')
      if(!this.proData.length){
        console.log('meiyouxuanze')
        this.$message({
          message: '请选择资产！',
          type: 'warning'
        })
        return
      }
      this.proData.map(item => {
        delete item.updateTime
        delete item.createTime
        delete item.insertTime
        delete item.propertyType
				// item.warehouseId = item.id
        return item
      })
			// this.tempData.departments = this.$store.state.user.userInfo[0].departments
      this.tempData.putList = this.proData
      if(this.writOradd == 0){
        if(this.tempData.wxstatus === '报修'){
          this.tempData.putList.map(item => {
            item.status = '报修中'
            return item
          })
        }else if(this.tempData.wxstatus === '维修中'){
          this.tempData.putList.map(item => {
            item.status = '维修中'
            return item
          })
        }
        
        addWeixiu(this.tempData).then(res => {
          console.log(res)
          if(res.data){
            this.$message({
              message: '新增成功',
              type: 'success'
            })
            this.$router.go(-1)
          }else{
            this.$message({
              message: '选择资产缺少维修人！',
              type: 'error'
            })
            this.isClick = false
          }
        })
      }else{
        if(this.tempData.wxstatus === '已完成') {
          this.tempData.putList.map(item => {
            item.status = '闲置'
            return item
          })
        }
        updateWeixiu(this.tempData).then(res => {
          console.log(res)
          this.$message({
            message: res.message,
            type: 'success'
          })
          this.$router.go(-1)
        })
      }
      
		},
		// 取消新增
		nosaveOrder(){
			console.log('取消')
			this.$router.go(-1)
		}
  }
};
</script>
<style lang="scss" scoped>
/deep/.el-input-group__append button.el-button{
  padding: 8px 12px;
}
.orderStatus {
  display: flex;
	justify-content: center;
  > p {
    padding: 0px 5px;
    color: #fff;
    font-size: 12px;
    border-radius: 2px;
    margin: 0 0px 0 0;
  }
  .blue {
    background: #3a87ad;
  }
  .green {
    background: #18a05e;
  }
  .yellow {
    background: #ff7a0e;
  }
  .red {
    background: #c60000;
  }
  .zise{
    background: #c7ab10
  }
}
.status {
	border-radius: 3px;
	font-size: 12px;
	width: 50px;
	color: #fff;
	background: #777777;
	margin: 0 auto;
}
.status-active {
	background: #18a05e;
}
.red {
  background: #ff0000;
}
.green {
  background: #18a05e;
}
.yellow {
  background: #f8c419;
}
.blue {
  background: #078fff;
}
.avatar-uploader .el-upload {
  border: 1px dashed #999 !important;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.avatar-uploader .el-upload:hover {
  border-color: #409eff;
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 100px;
  height: 100px;
  line-height: 100px;
  text-align: center;
  border: 1px solid #ccc;
}
.avatar1 {
  width: 100px;
  height: 100px;
  display: block;
}
/deep/.el-button--primary {
  color: #fff;
  background-color: #18a05e !important;
  border-color: #18a05e !important;
}
/deep/.el-button--primary:hover,
.el-button--primary:focus {
  background: #18a05e !important;
  border-color: #18a05e !important;
  color: #fff !important;
}
/deep/.el-button:hover,
.el-button:focus {
  color: #18a05e;
  background-color: transparent;
}
.ellisp{
	width: 100%;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	text-align: center;
}
/deep/.el-button--primary {
  color: #fff;
  background-color: #18a05e;
  border-color: #18a05e;
}
.popup {
  padding: 0 20px;
}
/deep/.el-dialog__body{
  padding: 10px 20px;
}
.product{
  display: flex;
  .pro-l{
    width: 200px;
  }
  .pro-r{
    flex: 1;
    overflow: hidden;
    
    /deep/.el-table--enable-row-hover .el-table__body tr:hover>td {
      background-color: rgba(24,160,94,.2);
    }
    /deep/.el-table tr{
      cursor: pointer;
    }
    /deep/.el-table__body tr.current-row>td {
      background-color: rgba(24,160,94,.4);
    }
  }
}
/deep/.el-dialog__body {
  padding: 10px 20px;
}
.zd3-title {
	height: 60px;
	display: flex;
	align-items: center;
	padding: 0 20px;
	position: relative;
	background: #ffffff;
	border-radius: 8px;
	// border: 1px solid rgba(0, 0, 0, 0.1);

	> p {
		font-size: 14px;
		color: #333;
		margin-right: 20px;

		> span {
			padding-right: 20px;
		}

		> input {
			width: 150px;
			height: 32px;
			// background: #ccc;
			border-radius: 3px;
			border: 1px solid #ccc;
			padding-left: 10px;
			color: #333;
		}
	}
}
.files {
  display: flex;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: 20px;
  overflow: hidden;
  padding: 20px;
}
/deep/.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #18a05e;
  color: #fff;
}
.files-btm /deep/.btn-prev:after {
  content: "上一页";
}
.files-btm /deep/.btn-next:before {
  content: "下一页";
}
.files-btm /deep/.btn-prev,
.files-btm /deep/.btn-next {
  width: 65px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.files-left {
	width: 160px;
	margin-right: 20px;
  height: 420px;
  overflow-y: auto;
	/deep/.el-menu{
		border-right: none;
	}
	/deep/.el-menu-item{
		height: 35px;
		line-height: 35px;
		margin-bottom: 8px;
	}
	/deep/.el-menu-item.is-active{
		color: #fff;
		border-radius: 5px;
		background: rgba(24,160,94,.8);
	}
}
.files-right {
  flex: 1;
  overflow: hidden;
}
.files-btm {
  background: rgba(255, 255, 255, 1);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  // margin-top: 20px;
  overflow: hidden;
  &-title {
    display: flex;
    align-items: center;
    height: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    > p {
      text-align: center;
      font-size: 16px;
      color: #333;
    }
  }
  .addDate {
    margin: 20px 32px 10px 32px;
    height: 32px;
    border-radius: 3px;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border: 1px dashed rgba(0, 0, 0, 0.3);
  }
  .el-button--text {
    margin: 0 15px;
  }
}
.avatar{
	width: 30px;
	height: 30px;
}
.zd3-btm {
  background: rgba(255, 255, 255, 1);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  overflow: hidden;
  &-title {
    display: flex;
    align-items: center;
    height: 70px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    > p {
      text-align: center;
      font-size: 16px;
      color: #333;
    }
  }
  .addDate {
    margin: 20px 32px 10px 32px;
    height: 32px;
    border-radius: 3px;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border: 1px dashed rgba(0, 0, 0, 0.3);
  }
  .el-button--text {
    margin: 0 15px;
  }
}
.inps {
  width: 95%;
  height: 32px;
  line-height: 32px;
  padding-left: 10px;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.8);
}
.inps-active {
  width: 95%;
  height: 32px;
  line-height: 32px;
  padding-left: 10px;
  background: rgba(24,160,94,.2);
  border: none;
  color: rgba(0, 0, 0, 0.8);
}
.change {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  > p {
    width: 25%;
    font-size: 14px;
    display: flex;
    align-items: center;
    color: #333;
    /deep/.el-input__inner {
      background: none;
      height: 32px;
      color: #333;
      border: 1px solid rgba(0, 0, 0, 0.1);
      padding: 0 25px;
    }
    /deep/.el-input__icon {
      line-height: 32px;
    }
    .userselect {
      flex: 1;
      display: flex;
      line-height: 30px;
    }

    > span {
      display: block;
      width: 120px;
      text-align: right;
      padding-right: 15px;
    }
    > input {
      width: inherit;
      flex: 1;
      height: 32px;
      border-radius: 3px;
      border: 1px solid rgba(0, 0, 0, 0.1);
      padding-left: 10px;
      color: #333;
    }
  }
  .beizhu{
    width: 100%;
    align-items: center;
  }
}
.submits{
	display: flex;
	padding: 15px 20px;
	justify-content: flex-end;
	align-items: center;
	>div{
		width: 80px;
		height: 32px;
		text-align: center;
		line-height: 32px;
		color: #fff;
		font-size: 14px;
		border-radius: 4px;
		margin-left: 30px;
		cursor: pointer;
	}
	.save{
		background: #2196F3;
	}
	.nosave{
		background: #999;
	}
}
@media screen and (max-width: 1400px) {
  .change > p {
    width: 33%;
  }
}
</style>